package com.hunau.zshop.dao;

import com.hunau.zshop.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerDao {
    //查询所有Customer
    public List<Customer> findAll();
    //改变客户状态
    public void changeCustomer(Integer id,Integer isValid);
    //修改客户信息
    public void alterCustomer(Customer customer);
    //查询客户信息
    public List<Customer> searchCustomer(Customer customer);
    //前台登录验证
    public Customer selectByLoginNameAndPassword(@Param("loginName")String loginName, @Param("password")String password, @Param("isValid")Integer isValid);
    //根据手机号查询
    Customer selectByPhone(String phone);
}
